home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 31
/
PC Gamer IT CD 31 1-2.iso
/
DINKDEMO
/
dink101.exe
/
DINK
/
STORY
/
MAIN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-10-01
|
2KB
|
61 lines
//main.c run when dink is started
void main()
{
//let's init all our globals
// These globals are REQUIRED by dink.exe (it directly uses them)
make_global_int("&exp",0);
make_global_int("&strength", 3);
make_global_int("&defense", 0);
make_global_int("&cur_weapon", 0);
make_global_int("&cur_magic", 0);
make_global_int("&gold", 0);
make_global_int("&magic", 0);
make_global_int("&magic_level", 0);
make_global_int("&vision", 0);
make_global_int("&result", 0);
make_global_int("&speed", 1);
make_global_int("&timing", 0);
make_global_int("&lifemax", 10);
make_global_int("&life", 10);
make_global_int("&level", 1);
make_global_int("&player_map", 1);
make_global_int("&last_text", 0);
make_global_int("&update_status", 0);
make_global_int("&missile_target", 0);
make_global_int("&enemy_sprite", 0);
make_global_int("&magic_cost", 0);
// These globals are stuff we added, which will all be saved with the player
// file
make_global_int("&story", 0);
make_global_int("&old_womans_duck", 0);
make_global_int("&nuttree", 0);
make_global_int("&letter", 0);
make_global_int("&little_girl", 0);
make_global_int("&farmer_quest", 0);
make_global_int("&save_x", 0);
make_global_int("&save_y", 0);
make_global_int("&safe", 0);
make_global_int("&pig_story", 0);
make_global_int("&wizard_see", 0);
make_global_int("&gossip", 0);
make_global_int("&robbed", 0);
make_global_int("&dinklogo", 0);
make_global_int("&rock_placement", 0);
make_global_int("&boat", 0);
//Let's preload that sprite that's been bugging the hell out of Pap
preload_seq(373);
//if run with -debug option this will be written to debug.txt.
debug("Dink started. Time to fight for your right to party.");
//playmidi("story.mid");
kill_this_task();
}